﻿@{
    Layout =null;

    string aclsname = ViewData["aclsname"] == null ? "" : ViewData["aclsname"].ToString();
    string albumClsNo = ViewData["albumClsNo"] == null ? "" : ViewData["albumClsNo"].ToString();
}
@using Webdiyer.WebControls.Mvc
@model PagedList< ElingOA6_DSJCJ.Model.Album>
   <script type="text/javascript">

       function iframeAutoFit() {
           var ex;
           try {
               if (window != parent) {
                   var a = parent.document.getElementsByTagName("IFRAME");
                   for (var i = 0; i < a.length; i++) {
                       if (a[i].contentWindow == window) {
                           var h1 = 0, h2 = 0;
                           if (document.documentElement && document.documentElement.scrollHeight) {
                               h1 = document.documentElement.scrollHeight;
                           }
                           if (document.body) h2 = document.body.scrollHeight;
                           var h = Math.max(h1, h2);
                           if (window.ActiveXObject) { h += 4; }
                           else { h += 4; }
                           a[i].style.height = h + "px";
                           window.removeEventListener('resize', iframeAutoFit, false); //兼容谷歌浏览器时要去掉RISZE监听
                       }
                   }
               }
           }
           catch (ex) { }
       }

   
   </script>
   <body  onload="iframeAutoFit()">    <link type="text/css" href="@Url.Content("~/Content/style.css")" rel="stylesheet"  />

            <div class="list_content">
    	<div class="lc_t"><h3> @aclsname </h3><span><a href="#">首页</a> &gt; <a href="/HonorsEdition/AlbumList?albumClsNo=@albumClsNo">@aclsname </a></span></div>
        
        <div class="paging-content">
             <ul>
                    @foreach (ElingOA6_DSJCJ.Model.Album albumModel in Model as List<ElingOA6_DSJCJ.Model.Album>)
                    {                             
                        <li style="float: left"><span><a href="@Url.Action("PicShow", "HonorsEdition", new { albumId = albumModel.FAlbumId, entryID = -1 })" target="_blank">
                            <img src="@Url.Action("AlbumImage", "HonorsEdition", new { albumId = albumModel.FAlbumId })" height="183" width="124"  alt="" /></a></span><span
                                class="cn" style="text-align: center"><a href="@Url.Action("PicShow", "HonorsEdition", new { albumId = albumModel.FAlbumId, entryID = -1 })" target="_blank" title="@albumModel.FFileName">@albumModel.FFileName</a></span></li>
                    }
                </ul>
        </div>
        <div class="clear"></div>
        <div class="manu">
                @Html.Pager(Model, new PagerOptions { ContainerTagName = "span", PageIndexParameterName = "id", ShowDisabledPagerItems = false, AlwaysShowFirstLastPageNumber = true, HorizontalAlign = "left", NextPageText = "下一页&gt;", PrevPageText = "&lt;上一页" }, new { style = "text-align:center;width:100%;font-size:12px" })
            </div>
    </div> 
    </body>    